#
# Makefile to install mib files.
#

V1MIBS	= RFC1155-SMI.txt RFC1213-MIB.txt

V2MIBS = SNMPv2-CONF.txt SNMPv2-SMI.txt SNMPv2-TC.txt SNMPv2-TM.txt \
	SNMPv2-MIB.txt

V3MIBS	= SNMP-FRAMEWORK-MIB.txt SNMP-MPD-MIB.txt SNMP-TARGET-MIB.txt \
	SNMP-NOTIFICATION-MIB.txt SNMP-PROXY-MIB.txt \
	SNMP-USER-BASED-SM-MIB.txt SNMP-VIEW-BASED-ACM-MIB.txt \
	SNMP-COMMUNITY-MIB.txt

RFCMIBS	= IANAifType-MIB.txt IF-MIB.txt IP-MIB.txt TCP-MIB.txt UDP-MIB.txt \
	EtherLike-MIB.txt \
	HOST-RESOURCES-MIB.txt HOST-RESOURCES-TYPES.txt \
	RMON-MIB.txt \
	IPV6-TC.txt IPV6-MIB.txt IPV6-ICMP-MIB.txt IPV6-TCP-MIB.txt \
	IPV6-UDP-MIB.txt

MIBS	= $(V1MIBS) $(V2MIBS) $(V2PMIBS) $(V3MIBS) $(RFCMIBS) \
	UCD-SNMP-MIB.txt UCD-DEMO-MIB.txt UCD-IPFWACC-MIB.txt \
	UCD-DLMOD-MIB.txt UCD-DISKIO-MIB.txt DISMAN-SCRIPT-MIB.txt

all:

install: installdirs
	@for i in $(MIBS) ; do $(INSTALL) $(srcdir)/$$i $(mibdir) ; echo "install: installed $$i in $(mibdir)" ; done

installdirs:
	@$(SHELL) $(srcdir)/../mkinstalldirs $(mibdir)
